const comfig = require('./webpack.com.conf');
const webpackMerge = require('webpack-merge');
const webpack = require('webpack');
const config = require('../config');

let devconfig = {
    mode:'development',
    module:{
        rules:[
            {
                test:/\.scss$/,
                use:['style-loader','css-loader','sass-loader']
            },
        ]
    },
    plugins:[
        new webpack.HotModuleReplacementPlugin()
    ],
    devServer:webpackMerge({
        port:config.dev.port,
        open:true,
        hot:true,
        host:config.dev.host,
    },config.dev.devServer),
    devtool:'cheap-module-eval-source-map'
}
module.exports = webpackMerge(devconfig,comfig)